package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 融云群组用户
 *
 * @author 刘聪
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tz_melt_cloud_group_user_invite")
@Schema(description = "融云用户加入群组申请")
@Builder
public class MeltCloudGroupUserInvite {

    @Schema(description = "主键")
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 融云群组id
     */
    @Schema(description = "融云群组id")
    @TableField(value = "group_id")
    private Long groupId;

    /**
     * 融云用户id
     */
    @Schema(description = "融云用户id")
    @TableField(value = "user_id")
    private String userId;

    /**
     * 融云用户昵称
     */
    @Schema(description = "融云用户昵称")
    @TableField(value = "user_name")
    private String userName;


    @Schema(description = "融云用户头像")
    @TableField(value = "user_portrait")
    private String userPortrait;

    @Schema(description = "审核状态 0 未审核 1 审核通过 2 拒绝")
    @TableField(value = "status")
    private Integer status;

    @Schema(description = "创建日期")
    @TableField(value = "create_time")
    private Date createTime;

    @Schema(description = "修改时间")
    @TableField(value = "update_time")
    private Date updateTime;

    @Schema(description = "邀请人")
    @TableField(value = "invite_user_id")
    private String inviteUserId;

    @Schema(description = "邀请人名称")
    @TableField(exist = false)
    private String inviteUserIdName;
}
